﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DrawArray
{
    public partial class DrawingForm : Form
    {
        public DrawingForm()
        {
            InitializeComponent();
        }


        public void DrawBitmap(ArrayDrawer ad)
        {
            ArrayPB.Image = ad.Bitmap;
  
        }

        private void DrawingForm_Load(object sender, EventArgs e)
        {
            timer1.Interval = 2000;
            timer1.Start();

        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            this.Close();
        }

    }
}
